@echo off
XConfTool %* 2> nul 1> "%temp%\xconf_%xvarname%.txt"
set /p %xvarname%=< "%temp%\xconf_%xvarname%.txt" > nul
del "%temp%\xconf_%xvarname%.txt"